package com.jjh.mapper;

import com.jjh.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DishMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Dish record);

    Dish selectByPrimaryKey(Integer id);

    List<Dish> selectAll();

    int updateByPrimaryKey(Dish record);

    List<Dish> getByCondition(Map<String, Object> map);

    Dish getByDishName(String name);

    int updateStatus(Integer id, String status);

    Dish getById(Integer id);

    void update(Dish dish);

    List<Dish> getByCateId(Integer cateId);
}